package com.ming.dao;

import com.ming.po.OrderDetailet;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailetDao {

	// 根据order表和cart表来将OrderDetailet数据添加到OrderDetailet表
	int saveOrderDetailetBatch(List<OrderDetailet> list);

	// @Select("select * from orderdetailet where orderId = #{orderId}")
	List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId);

	// 通过子查询的方法来生成订单明细表
	int saveOrderDetailet(Integer orderId);
}
